<template>
  <div class="box w">
    <ListHeader />
    <ListMain :arr="list" />
  </div>
</template>

<script>
import ListHeader from "./components/ListHeader.vue";
import ListMain from "./components/ListMain.vue";
export default {
  components: {
    ListHeader,
    ListMain,
  },
  data() {
    return {
      list: [
        {
          src: "https://www.obsidian2019.com/images/pic.png",
          title: "Think PHP 5.0 博客系统实战项目演练",
          num: 1125,
        },
        {
          src: "https://www.obsidian2019.com/images/pic2.png",
          title: "Android 网络动态图片加载实战",
          num: 357,
        },
        {
          src: "https://www.obsidian2019.com/images/pic3.png",
          title: "Angular2 大前端商城实战项目演练",
          num: 22250,
        },
        {
          src: "https://www.obsidian2019.com/images/pic4.png",
          title: "Android APP 实战项目演练",
          num: 389,
        },
        {
          src: "https://www.obsidian2019.com/images/pic4.png",
          title: "UGUI 源码深度分析案例",
          num: 124,
        },
        {
          src: "https://www.obsidian2019.com/images/pic.png",
          title: "Kami2首页界面切换效果实战演练",
          num: 432,
        },
        {
          src: "https://www.obsidian2019.com/images/pic2.png",
          title: "UNITY 从入门到精通实战案例",
          num: 888,
        },
        {
          src: "https://www.obsidian2019.com/images/pic3.png",
          title: "Cocos 深度学习你不会错过的实战",
          num: 590,
        },
      ],
    };
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
.w {
  width: 1200px;
  margin: auto;
}
body {
  background-color: #f3f5f7;
}
li {
  list-style: none;
}
a {
  text-decoration: none;
}
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.clearfix {
  *zoom: 1;
}

.box {
  margin-top: 30px;
}

/* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行了 */
</style>